package com.chen.wxchat.service.impl;

import com.chen.wxchat.dao.NotifyDao;
import com.chen.wxchat.entity.Notify;
import com.chen.wxchat.service.NotifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class NotifyServiceImpl implements NotifyService {

    @Autowired
    private NotifyDao notifyDao;

    @Override
    public boolean addNotify(Notify notify) {
        return (notifyDao.insertNotify(notify)>0);
    }

    @Override
    public List<Notify> getNotifyList(String notifyId) {
        return notifyDao.getNotifyList(notifyId);
    }
}
